<?php
echo $html->div(
  'paginate','
  <span>TRENDING:</span>
  <a href="#">BREAKFAST</a><a href="#">LUNCH</a>
  <a href="#">SNACKS</a><a href="#">DINNER</a>
  ');
 ?>

<div class="clearfix">				 
		<div id="grid">
			<div id="sort">
				<?php
				foreach($data as $album) {
					$url_path = HOSTNAME.'/albums/category/'.$album['Album']['id'];
				?>
				<div class="box<?php echo ($album['Album']['is_featured'])?' featbox':'';?>">											
					<a href="<?php echo $url_path?>"><img width="320" title="weee-man" alt="<?php echo $album['Album']['title'];?>" class="thumbnail wp-post-image" src="<?php echo HOSTNAME.'/thumbs/?src=/app/webroot/img/albums/'.$album['Album']['path'].'&w=300&zc=1&q=100';?>" style="opacity: 1;"></a>
					<h1><a rel="bookmark" href="<?php echo $url_path?>"><?php echo $album['Album']['title'];?></a></h1>
					<div class="fb_like_index">
					<fb:like href="<?php echo $url_path;?>"
									   layout="button_count"
									   show_faces="false"
									   action="like"
									   colorscheme="light"></fb:like>
					</div>
					<p><?php echo $album['Album']['description'];?></p>
					<a href="<?php echo $url_path?>" class="boxa"><span>Read More &raquo;</span></a>
					<!-- <p class="postmetadata"> Stack | <a rel="category tag" title="View all posts in Sculpture" href="#">Dishes</a>  </p> -->																				
				</div>				
				<?php } ?>			
			</div>
		</div>
</div>

<?php
echo $html->div(
  'paginate',
  $paginator->numbers(array('separator'=>null))
);  
?>
<br/>
<div id="fb-root"></div>
<script type="text/javascript">
			window.fbAsyncInit = function() {
				FB.init({appId: '236594319790349', status: true, cookie: true,xfbml: true});
				FB.Event.subscribe('edge.create', function(url) {
				  _gaq.push(['_trackSocial', 'facebook', 'like', url]);
				});
				FB.Event.subscribe('edge.remove', function(url) {
				  _gaq.push(['_trackSocial', 'facebook', 'unlike', url]);
				});
			};
			(function() {
				var e = document.createElement('script'); e.async = true;
				e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
				document.getElementById('fb-root').appendChild(e);
			}());
		</script>